import { useState } from 'react'
import {Button,Space,Input} from 'antd'
import './App.css'

function App() {
const [inputValue,setInputValue]= useState('')
  return (
    <>
      <div  >
        <Space.Compact>
          <Input value={inputValue} onChange={e=>setInputValue(e.target.value)}></Input>
        <Button onClick={()=>{
          console.log(inputValue)
        }}> 发送email</Button>
        </Space.Compact>
      </div>
      
    </>
  )
}

export default App
